namespace (typescript)
方法は2つ
namespaceを使う
code:ts
namespace Foo {
export type Bar = string;
}
import *を使う
code:Foo.ts
export type Bar = string;
code:ts
import type * as Foo from "./Foo";
code:effect/src/index.ts
export * as Either from "./Either.js"
code:effect/src/Either.ts
export type Either<A, E = never> = Left<E, A> | Right<E, A>
export const TypeId: unique symbol = either.TypeId